<template>
<!--  <a-button type="primary" icon="edit" style="margin-right: 15px" @click="homePage">首页</a-button>-->
  <a-button
    type="danger"
    icon="delete"
    style="margin-right: 15px"
    @click="loginOut()"
  >退出</a-button>
</template>

<script>
export default {
  methods: {
    loginOut() {
      window.sessionStorage.clear('token')
      this.$router.push('/login')
    },
    homePage() {
      this.$router.push('/')
    }
  }
}
</script>
